package genericDemo;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList<>();
        ArrayList<Integer> list1 = new ArrayList<>();
        ArrayList<String> list2 = new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        System.out.println(list.getValue(1));
        System.out.println(list.printArr());
        ListUtil.addElement(list1, 1,2,3,4,5);
        System.out.println(list1.toString());
        ListUtil.addElement(list2, "a","b","c","d","e");
        System.out.println(list2.toString());
        MyArrayList2<Integer> list3 = new MyArrayList2<>();
        list3.add(123);
        System.out.println(list3.toString());
    }
}
